package com.ruoyi.yipaiju.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 浏览记录对象 fo_access_log
 * 
 * @author liuwp
 * @date 2023-03-10
 */
public class AccessLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** user_id */
    @Excel(name = "user_id")
    private Long userId;

    /** house_id */
    @Excel(name = "house_id")
    private Long houseId;

    /** house_title */
    @Excel(name = "house_title")
    private String houseTitle;

    /** user_nickname */
    @Excel(name = "user_nickname")
    private String userNickname;

    /** house_community */
    @Excel(name = "house_community")
    private String houseCommunity;

    /** house_category */
    @Excel(name = "house_category", dictType = "fo_house_category")
    private String houseCategory;

    /** access_time */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "access_time", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date accessTime;

    /** access_interval_seconds */
    @Excel(name = "access_interval_seconds")
    private Long accessIntervalSeconds;

    private String clientIp;

    /** access_val1 */
    @Excel(name = "access_val1")
    private String accessVal1;

    /** access_val2 */
    @Excel(name = "access_val2")
    private String accessVal2;

    /** access_val3 */
    @Excel(name = "access_val3")
    private String accessVal3;

    /** access_val4 */
    @Excel(name = "access_val4")
    private String accessVal4;

    /** access_val5 */
    @Excel(name = "access_val5")
    private String accessVal5;

    /** ext1 */
    @Excel(name = "ext1")
    private String ext1;

    /** ext2 */
    @Excel(name = "ext2")
    private String ext2;

    /** ext3 */
    @Excel(name = "ext3")
    private String ext3;

    // 用户访问记录， 关联查询显示房源信息
    private ForeclosedHouse foreclosedHouse;
    private DiscountHouse discountHouse;

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public ForeclosedHouse getForeclosedHouse() {
        return foreclosedHouse;
    }

    public void setForeclosedHouse(ForeclosedHouse foreclosedHouse) {
        this.foreclosedHouse = foreclosedHouse;
    }

    public DiscountHouse getDiscountHouse() {
        return discountHouse;
    }

    public void setDiscountHouse(DiscountHouse discountHouse) {
        this.discountHouse = discountHouse;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }
    public void setHouseTitle(String houseTitle) 
    {
        this.houseTitle = houseTitle;
    }

    public String getHouseTitle() 
    {
        return houseTitle;
    }
    public void setUserNickname(String userNickname) 
    {
        this.userNickname = userNickname;
    }

    public String getUserNickname() 
    {
        return userNickname;
    }
    public void setHouseCommunity(String houseCommunity) 
    {
        this.houseCommunity = houseCommunity;
    }

    public String getHouseCommunity() 
    {
        return houseCommunity;
    }
    public void setHouseCategory(String houseCategory) 
    {
        this.houseCategory = houseCategory;
    }

    public String getHouseCategory() 
    {
        return houseCategory;
    }
    public void setAccessTime(Date accessTime) 
    {
        this.accessTime = accessTime;
    }

    public Date getAccessTime() 
    {
        return accessTime;
    }
    public void setAccessIntervalSeconds(Long accessIntervalSeconds) 
    {
        this.accessIntervalSeconds = accessIntervalSeconds;
    }

    public Long getAccessIntervalSeconds() 
    {
        return accessIntervalSeconds;
    }
    public void setAccessVal1(String accessVal1) 
    {
        this.accessVal1 = accessVal1;
    }

    public String getAccessVal1() 
    {
        return accessVal1;
    }
    public void setAccessVal2(String accessVal2) 
    {
        this.accessVal2 = accessVal2;
    }

    public String getAccessVal2() 
    {
        return accessVal2;
    }
    public void setAccessVal3(String accessVal3) 
    {
        this.accessVal3 = accessVal3;
    }

    public String getAccessVal3() 
    {
        return accessVal3;
    }
    public void setAccessVal4(String accessVal4) 
    {
        this.accessVal4 = accessVal4;
    }

    public String getAccessVal4() 
    {
        return accessVal4;
    }
    public void setAccessVal5(String accessVal5) 
    {
        this.accessVal5 = accessVal5;
    }

    public String getAccessVal5() 
    {
        return accessVal5;
    }
    public void setExt1(String ext1) 
    {
        this.ext1 = ext1;
    }

    public String getExt1() 
    {
        return ext1;
    }
    public void setExt2(String ext2) 
    {
        this.ext2 = ext2;
    }

    public String getExt2() 
    {
        return ext2;
    }
    public void setExt3(String ext3) 
    {
        this.ext3 = ext3;
    }

    public String getExt3() 
    {
        return ext3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("houseId", getHouseId())
            .append("houseTitle", getHouseTitle())
            .append("userNickname", getUserNickname())
            .append("houseCommunity", getHouseCommunity())
            .append("houseCategory", getHouseCategory())
            .append("accessTime", getAccessTime())
            .append("accessIntervalSeconds", getAccessIntervalSeconds())
            .append("createTime", getCreateTime())
            .append("accessVal1", getAccessVal1())
            .append("accessVal2", getAccessVal2())
            .append("accessVal3", getAccessVal3())
            .append("accessVal4", getAccessVal4())
            .append("accessVal5", getAccessVal5())
            .append("ext1", getExt1())
            .append("ext2", getExt2())
            .append("ext3", getExt3())
            .toString();
    }
}
